package com.nearsoft.academy.sharounding;

import java.util.Date;

public class OrientationData {

	private float headingAngle;
	private float pitchAngle;
	private float rollAngle;
	private Date dateEntered;

	public OrientationData(Date date, float headingAngle, float pitchAngle, float rollAngle) {
		this.dateEntered = date;
		this.headingAngle = headingAngle;
		this.pitchAngle = pitchAngle;
		this.rollAngle = rollAngle;
	}
	
	public OrientationData(float headingAngle, float pitchAngle, float rollAngle) {
		this.dateEntered = new Date();
		this.headingAngle = headingAngle;
		this.pitchAngle = pitchAngle;
		this.rollAngle = rollAngle;
	}

	public float getHeadingAngle() {
		return headingAngle;
	}

	public void setHeadingAngle(float headingAngle) {
		this.headingAngle = headingAngle;
	}

	public float getPitchAngle() {
		return pitchAngle;
	}

	public void setPitchAngle(float pitchAngle) {
		this.pitchAngle = pitchAngle;
	}

	public float getRollAngle() {
		return rollAngle;
	}

	public void setRollAngle(float rollAngle) {
		this.rollAngle = rollAngle;
	}

	public Date getDateEntered() {
		return dateEntered;
	}

	public void setDateEntered(Date dateEntered) {
		this.dateEntered = dateEntered;
	}

	@Override
	public String toString() {
		return "OrientationData [headingAngle=" + headingAngle
				+ ", pitchAngle=" + pitchAngle + ", rollAngle=" + rollAngle
				+ ", dateEntered=" + dateEntered + "]";
	}

	
}
